<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
 String path = request.getContextPath();
 String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<base href="<%=basePath%>">
	<title>注册 - SegmentFault</title>
	<jsp:include page="../common/_meta.jsp"></jsp:include>
</head>
<body>
	<jsp:include page="../common/_header.jsp"></jsp:include>
	<div class="wrap">
		<div class="min-inner session-edge">
			<h2 class="big-title">注册</h2>
			<p class="title-description">您正在注册本站独立帐号！</p>
			<p class="title-description" style="color: red;">${message}</p>
			<form class="session-form" action="user/regSub" method="post">
				<input type="hidden" name="basePath" value="<%=basePath%>">
				<p style="position: relative;">
					<label for="mail">Email 地址</label> 
					<input type="email" name="user.email" placeholder="Email 地址" value="" class="text-34" required="">
					<c:if test="${errorMail eq '1'}">
						<span class="text-error">此邮箱不合法或已经被注册！</span>
					</c:if>
				</p>
				<p style="position: relative;">
					<label for="password">登录密码</label> <input type="password" name="user.password" placeholder="登录密码" class="text-34" required="">
					<c:if test=" ${errorPwd eq '1'}">
						<span class="text-error">密码不能为空！</span>
					</c:if>
				</p>
				<p style="position: relative;">
					<label for="name">登录名</label> 
					<input type="text" name="user.login_name" maxlength="32" placeholder="登录名" value="" class="text-34 placeholder" required="">
					<c:if test="${errorName eq '1'}">
						<span class="text-error">登录名不能为空或已存在！</span>
					</c:if>
				</p>
				<div class="form-action">
					<span class="left">
						您将同意并接受<a href="license" target="_blank">《服务条款》</a></span>
					<input type="submit" class="btn btn-big" value="注册">
				</div>
			</form>
		</div>
	</div>
	<!-- end .wrap -->
	<jsp:include page="../common/_footer.jsp"></jsp:include>
</body>
</html>